package com.taobao.wolfwolf.util;

/**
 * @author qinanhg@gmail.com
 *
 * 创建时间: 2011-11-29 上午12:28:23
 */
public class HqlParam {
	private String key;
	private int operator;
	private Object value;
	
	/**
	 * 大于
	 */
	public static final int gt = 1;
	
	/**
	 * 小于
	 */
	public static final int lt = 2;
	
	/**
	 * 大于等于
	 */
	public static final int ge = 3;
	
	/**
	 * 小于等于
	 */
	public static final int le = 4;
	
	
	/**
	 * 模糊
	 */
	public static final int like = 5;
	
	
	public HqlParam(String key, int operator, Object value) {
		this.key = key;
		this.operator = operator;
		this.value = value;
	}
	
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public int getOperator() {
		return operator;
	}
	public void setOperator(int operator) {
		this.operator = operator;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
}
